package com.shaozi.nc.data.model;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.shaozi.data.mongo.model.ModelBase;
@Document(collection = "im_GroupMemberRelation")
public class GroupMemberRelationModel extends ModelBase {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2980868370074870153L;
	
	@Field("groupId")
	private String groupId;
	public static final String FIELDNAME_groupId = "groupId";
	
	@Field("userId")
	private String userId;
	public static final String FIELDNAME_userId = "userId";
	
	@Field("creatTime")
	private Long creatTime;
	public static final String FIELDNAME_creatTime = "creatTime";
	
	@Field("lastUpdateTime")
	private Long lastUpdateTime;
	public static final String FIELDNAME_lastUpdateTime = "lastUpdateTime";
	
	/**
	 * 0：使用中, 1：已退出 2:被解散 3被踢出
	 */
	private Byte delState;
	public static final String FIELDNAME_delState = "delState";
	
    public static final byte STATE_USING = 0;
    public static final byte STATE_KONCKOUT = 1;
    public static final byte STATE_DISMISS = 2;
    public static final byte STATE_QUIT = 3;

	public GroupMemberRelationModel() {

	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Long getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(Long creatTime) {
		this.creatTime = creatTime;
	}

	public Long getLastUpdateTime(){
		return lastUpdateTime;
	}
	
	public void setLastUpdateTime(Long lastUpdateTime){
		this.lastUpdateTime = lastUpdateTime;
	}

	public Byte getDelState() {
		return delState;
	}

	public void setDelState(Byte delState) {
		this.delState = delState;
	}
}
